package com.cskaoyan.day14;

public class getClassTest {
    public static void main(String[] args) {
        A a = new A();
        A a1 = new A();
        B b = new B();
        Class aClass = a.getClass();
        Class aClass1 = a1.getClass();
        Class bClass = b.getClass();
        System.out.println("(aClass==aClass1) = " + (aClass == aClass1));
        System.out.println("(aClass==bClass ) = " + (aClass == bClass));
        System.out.println("(aClass1==bClass ) = " + (aClass1 == bClass));
    }
}

class A {

}

class B {

}
